
const initRegisterList = [
    {id:"2023102301001",deptName:"儿科",name:"王泽荣"},
    {id:"2023102301002",deptName:"骨科",name:"袁艺飞"}
];


const reducer = (registerList=initRegisterList,action)=>{
    switch (action.type){

        case "ADD_REGISTER":{
            return [...registerList,action.payload]
        }
        default:
            return registerList;
    }
}

export default reducer;